<%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="../../favicon.ico">

<title>Novo Cadastro</title>

<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">

</head>
<body>

<div class="container">
		<div class="header">
			<ul class="nav nav-pills pull-right">
				<li class="active"><a href="index.jsp">Home</a></li>
				<li><a
					href="http://cdigtcwww01:8080/Intranet/ConsultaRamaisJsf.jsf;jsessionid=B821DD722E1A78C89C58EE4E3F0C6FEB">Consultar
						Ramais</a></li>
				<!--<li><a href="#">Contact</a></li>-->
			</ul>
			<h2 class="text-muted">Cadastro do Consulta Ramais</h2>
		</div>

		<div class="jumbotron">

			<h2>Clique na Opção Desejada:</h2>
			<br>

			<form method="POST" action='UserController' name="frmAddUser">

				<div class="control-group">

					<!-- Inicio dos Campos do Formulário -->

					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputMatricula">Matrícula:</label> <input
								type="text" class="form-control input-sm"
								id="exampleInputMatricula" placeholder="Matrícula" name="matricula"
								 value="<c:out value="${user.matricula}" />" /> <br />
						</div>
					</div>


					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputEmpresa">Nome da Empresa:</label> <input
								type="text" class="form-control input-sm"
								id="exampleInputEmpresa" placeholder="Empresa"
								name="empresa" required
								value="<c:out value="${user.empresa}" />" /> <br />
						</div>
					</div>

					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputCargo">Cargo:</label> <input
								type="text" class="form-control input-sm"
								id="exampleInputCargo"  placeholder="Nome do Cargo"
								name="cargo" required
								value="<c:out value="${user.cargo}" />" /> <br />
						</div>
					</div>

					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputFuncao">Função:</label> <input type="text"
								class="form-control input-sm" id="exampleInputFuncao"
								placeholder="Funcao" name="funcao" required
								value="<c:out value="${user.funcao}" />" /><br/>
						</div>
					</div>

					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputLotacao">Lotação:</label> <input type="text"
								class="form-control input-sm" id="exampleInputLotacao"
								placeholder="Lotaçao" name="lotacao" required
								value="<c:out value="${user.lotacao}" />" /> <br />
						</div>
					</div>

					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputNome">Nome:</label> <input type="text"
								class="form-control input-sm" id="exampleInputNome"
								placeholder="Nome" name="nome" required
								value="<c:out value="${user.nome}" />" /> <br />
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputRamal">Ramal:</label> <input type="text"
								class="form-control input-sm" id="exampleInputRamal"
								placeholder="Ramal" name="ramal" required
								value="<c:out value="${user.ramal}" />" /> <br />
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputUnidade">Unidade:</label> <input type="text"
								class="form-control input-sm" id="exampleInputUnidade"
								placeholder="Unidade" name="unidade" required
								value="<c:out value="${user.unidade}" />" /> <br />
						</div>
					</div>
					
					<div class="row">
						<div class="form-group col-md-4">
							<label for="exampleInputPrefixo">Prefixo da Unidade:</label> <input type="text"
								class="form-control input-sm" id="exampleInputPrefixo"
								placeholder="Prefixo" name="prefixo" required
								value="<c:out value="${user.prefixo}" />" /> <br />
						</div>
					</div>

					<input class="btn btn-success btn-sm" type="submit" value="Salvar" onClick="alert('Registro Salvo com Sucesso!!!')"/>
					<input class="btn btn-danger btn-sm" type="reset" value="Cancelar" />

				</div>
			</form>
		</div>


		<div class="footer">
			<p>&copy; Getec 2014</p>
		</div>

	</div>
	<!-- /container -->


	<!-- Bootstrap core JavaScript
    ================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
	<script
		src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
	<!-- Include all compiled plugins (below), or include individual files as needed -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>